package io.sage.modules.statistics.dao;

import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.apache.ibatis.annotations.Param;

import io.sage.modules.statistics.entity.BStatisticsPressure;
import io.sage.modules.statistics.entity.BStatisticsPressureExample;

public interface BStatisticsPressureMapper {
    int countByExample(BStatisticsPressureExample example);

    int deleteByExample(BStatisticsPressureExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BStatisticsPressure record);

    int insertSelective(BStatisticsPressure record);

    List<BStatisticsPressure> selectByExample(BStatisticsPressureExample example);

    BStatisticsPressure selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BStatisticsPressure record, @Param("example") BStatisticsPressureExample example);

    int updateByExample(@Param("record") BStatisticsPressure record, @Param("example") BStatisticsPressureExample example);

    int updateByPrimaryKeySelective(BStatisticsPressure record);

    int updateByPrimaryKey(BStatisticsPressure record);

    /**
	 * 气压列表
	 * @param example
	 * @return
	 */
	List<BStatisticsPressure> selectStatisticsPressureList(Map<String, Object> params);

	/**
	 * 批量添加传感器的压强
	 * @param list
	 * @return
	 */
	int savePressureList(@Param("list")List<BStatisticsPressure> list);

    /**
     * 根据库房id查询记录
     * @param params
     * @return
     */
    List<BStatisVo> selectListByWarehouseId(Map params);
}
